package com.ruoyi.mes.material.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 原料采购明细对象 smes_material_arrive_bill_detail
 *
 * @author simpsense
 * @date 2020-12-10
 */
public class SmesMaterialArriveBillDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长列 */
    private Long rowId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String arriveBillNo;

    @Excel(name = "订单状态")
    private String billStatus;

    public String getBillStatus() {
        return billStatus;
    }

    public void setBillStatus(String billStatus) {
        this.billStatus = billStatus;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    @Excel(name = "批次")
    private String batchNo;
    /** 原材料 */
    @Excel(name = "原材料编号")
    private String materialNo;
    @Excel(name = "原材料名称")
    private String materialName;
    @Excel(name = "原料类别")
    private String materialCategoryName;

    public String getMaterialCategoryName() {
        return materialCategoryName;
    }

    public void setMaterialCategoryName(String materialCategoryName) {
        this.materialCategoryName = materialCategoryName;
    }

    public String getManageType() {
        return manageType;
    }

    public void setManageType(String manageType) {
        this.manageType = manageType;
    }

    @Excel(name = "管理方式")
    private String manageType;
    public String getMaterialUnit() {
        return materialUnit;
    }

    public void setMaterialUnit(String materialUnit) {
        this.materialUnit = materialUnit;
    }

    @Excel(name = "单位")
    private String materialUnit;
    @Excel(name = "原材料规格")
    private String materialSpec;
    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 计划数量 */
    @Excel(name = "计划数量")
    private BigDecimal planNum;

    /** 合格数量 */
    @Excel(name = "合格数量")
    private BigDecimal actualNum;

    /** 供应商代码 */
    @Excel(name = "供应商代码")
    private String supplierNo;

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getMaterialSpec() {
        return materialSpec;
    }

    public void setMaterialSpec(String materialSpec) {
        this.materialSpec = materialSpec;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    @Excel(name = "供应商名称")
    private String supplierName;
    /** 采购者 */
    @Excel(name = "采购者")
    private String buyBy;

    /** 采购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 检验者 */
    @Excel(name = "检验者")
    private String checkBy;

    /** 检验时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date checkTime;

    /** 收货人 */
    @Excel(name = "收货人")
    private String recieveBy;

    /** 收货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recieveTime;

    /** 是否检验 */
    @Excel(name = "是否检验")
    private String isChecked;

    /** 是否收货 */
    @Excel(name = "是否收货")
    private String isRecieved;

    public void setRowId(Long rowId)
    {
        this.rowId = rowId;
    }

    public Long getRowId()
    {
        return rowId;
    }
    public void setArriveBillNo(String arriveBillNo)
    {
        this.arriveBillNo = arriveBillNo;
    }

    public String getArriveBillNo()
    {
        return arriveBillNo;
    }
    public void setMaterialNo(String materialNo)
    {
        this.materialNo = materialNo;
    }

    public String getMaterialNo()
    {
        return materialNo;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setPlanNum(BigDecimal planNum)
    {
        this.planNum = planNum;
    }

    public BigDecimal getPlanNum()
    {
        return planNum;
    }
    public void setActualNum(BigDecimal actualNum)
    {
        this.actualNum = actualNum;
    }

    public BigDecimal getActualNum()
    {
        return actualNum;
    }
    public void setSupplierNo(String supplierNo)
    {
        this.supplierNo = supplierNo;
    }

    public String getSupplierNo()
    {
        return supplierNo;
    }
    public void setBuyBy(String buyBy)
    {
        this.buyBy = buyBy;
    }

    public String getBuyBy()
    {
        return buyBy;
    }
    public void setBuyTime(Date buyTime)
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime()
    {
        return buyTime;
    }
    public void setCheckBy(String checkBy)
    {
        this.checkBy = checkBy;
    }

    public String getCheckBy()
    {
        return checkBy;
    }
    public void setCheckTime(Date checkTime)
    {
        this.checkTime = checkTime;
    }

    public Date getCheckTime()
    {
        return checkTime;
    }
    public void setRecieveBy(String recieveBy)
    {
        this.recieveBy = recieveBy;
    }

    public String getRecieveBy()
    {
        return recieveBy;
    }
    public void setRecieveTime(Date recieveTime)
    {
        this.recieveTime = recieveTime;
    }

    public Date getRecieveTime()
    {
        return recieveTime;
    }
    public void setIsChecked(String isChecked)
    {
        this.isChecked = isChecked;
    }

    public String getIsChecked()
    {
        return isChecked;
    }
    public void setIsRecieved(String isRecieved)
    {
        this.isRecieved = isRecieved;
    }

    public String getIsRecieved()
    {
        return isRecieved;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("rowId", getRowId())
                .append("arriveBillNo", getArriveBillNo())
                .append("materialNo", getMaterialNo())
                .append("price", getPrice())
                .append("planNum", getPlanNum())
                .append("actualNum", getActualNum())
                .append("supplierNo", getSupplierNo())
                .append("buyBy", getBuyBy())
                .append("buyTime", getBuyTime())
                .append("checkBy", getCheckBy())
                .append("checkTime", getCheckTime())
                .append("recieveBy", getRecieveBy())
                .append("recieveTime", getRecieveTime())
                .append("isChecked", getIsChecked())
                .append("isRecieved", getIsRecieved())
                .toString();
    }
}